/*******************************************************************************
* Project: QSAR(Cute Software Architecture) 
*
* Copyright: Copyright(C) 2024 by YuetingBen, All Rights Reserved
*
* File name: XcpOnCan.c
*
* Brief: ;
*
* Author: Yueting.Ben
*
* Module: Xcp
*
*******************************************************************************/

/** HEADER FILES **/
#include "XcpOnCan.h"


/** MACRO DEFINITION **/


/** TYPEDEF DEFINITION **/


/** LOCAL DATA DECLARATION **/


/** GLOBAL DATA DECLARATION **/


/** LOCAL FUNCTION DECLARATION **/


/** GLOBAL FUNCTION DECLARATION **/


/** LOCAL DATA **/


/** GLOBAL DATA **/


/** LOCAL FUNCTION **/


/** GLOBAL FUNCTION **/

/*******************************************************************************
* -Name         Xcp_CanIfTxConfirmation
* -Brief        The lower layer communication interface module confirms the transmission of a PDU, or the failure to transmit a PDU
* -Details      None
* -Param[in]    TxPduId: ID of the PDU that has been transmitted
* -Param[in]    result: E_OK: The PDU was transmitted. E_NOT_OK: Transmission of the PDU failed
* -Return       None          
*******************************************************************************/
void Xcp_CanIfTxConfirmation( 
  PduIdType TxPduId, 
  Std_ReturnType result 
)
{

}

/*******************************************************************************
* -Name         Xcp_CanIfTransmit
* -Brief        Requests transmission of a PDU
* -Details      None
* -Param[in]    TxPduId: Identifier of the PDU to be transmitted
* -Param[in]    PduInfoPtr: Length of and pointer to the PDU data and pointer to MetaData
* -Param[out]   None
* -Return       E_OK: Transmit request has been accepted
*               E_NOT_OK: Transmit request has not been accepted
*******************************************************************************/
Std_ReturnType Xcp_CanIfTransmit(
    PduIdType TxPduId,
    const PduInfoType* PduInfoPtr
)
{
    CanIf_Transmit(TxPduId, PduInfoPtr);
}

/*******************************************************************************
* -Name         Xcp_CanIfRxIndication
* -Brief        Indication of a received PDU from a lower layer communication interface module.
* -Details      None
* -Param[in]    RxPduId: ID of the received PDU
* -Param[in]    PduInfoPtr: Contains the length (SduLength) of the received PDU, a pointer to a buffer (SduDataPtr) 
*                           containing the PDU, and the MetaData related to this PDU
* -Return       None          
*******************************************************************************/
void Xcp_CanIfRxIndication( 
  PduIdType RxPduId, 
  const PduInfoType* PduInfoPtr 
) 
{
    Xcp_RxIndication(RxPduId, PduInfoPtr);
}


